# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=kanshi
pkgver=1.5.0
pkgrel=0
pkgdesc="Dynamic display configuration for Wayland"
url="https://wayland.emersion.fr/kanshi/"
license="MIT"
arch="all"
options="!check" # no test suite
makedepends="meson varlink-dev wayland-dev scdoc"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~emersion/kanshi/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
a3bb11644382727bd52ff26942ca031246ca4ac006c02b5c6dcd0c21948f7cb8ad3cfc6141c51637ee9150069711b59cc0bdd9bb7bde9583fe9c11b02bb89088  kanshi-1.5.0.tar.gz
"
